package com.ruoyi.project.zerocarbon.mapper;

import com.ruoyi.project.zerocarbon.domain.DeclarationGansu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 【请填写功能名称】Mapper接口
 * 
 * @author www.joolun.com
 * @date 2022-05-27
 */
public interface DeclarationGansuMapper 
{
    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    public DeclarationGansu selectDeclarationGansuById(Long id);

    public DeclarationGansu selectDeclarationDetailGansuById(Long id);

    public DeclarationGansu selectDeclarationGansuListByUserName(String userName);

    public String selectMaxSerial();


    /**
     * 查询【请填写功能名称】列表
     * 
     * @param declarationGansu 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    public List<DeclarationGansu> selectDeclarationGansuList(DeclarationGansu declarationGansu);
    public List<DeclarationGansu> selectDeclarationGansuListExport(DeclarationGansu declarationGansu);

    /**
     * 新增【请填写功能名称】
     * 
     * @param declarationGansu 【请填写功能名称】
     * @return 结果
     */
    public int insertDeclarationGansu(DeclarationGansu declarationGansu);

    /**
     * 修改【请填写功能名称】
     * 
     * @param declarationGansu 【请填写功能名称】
     * @return 结果
     */
    public int updateDeclarationGansu(DeclarationGansu declarationGansu);

    /**
     * 删除【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    public int deleteDeclarationGansuById(Long id);

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteDeclarationGansuByIds(Long[] ids);

    public int getRankingNum(@Param("score") Integer score);

    public List<DeclarationGansu> getRankingDecorationList(DeclarationGansu declarationGansu);
    public List<DeclarationGansu> getGroupDecorationList(DeclarationGansu declarationGansu);
    public int countGroupDecorationList(DeclarationGansu declarationGansu);

    public List<DeclarationGansu> getGroupDecorationListAndNoJudgeStatus(DeclarationGansu declarationGansu);
    public int countGroupDecorationListAndNoJudgeStatus(DeclarationGansu declarationGansu);

    public List<DeclarationGansu> getGroupDecorationListAndJudgeStatus(DeclarationGansu declarationGansu);
    public int countGroupDecorationListAndJudgeStatus(DeclarationGansu declarationGansu);

}
